package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2020-03-02
 */
@TableName("vpnuser")
@Getter
@Setter
public class VpnUserInfo extends Model<VpnUserInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer id;

    @TableField("username")
    private String userName;

    @TableField("password")
    private String password;

    @TableField("reg_version")
    private String regVersion;

    @TableField("reg_chanel")
    private String regChannel;

    @TableField("cur_platform")
    private String curPlatform;

    @TableField("status")
    private Integer status;

    @TableField("ip_addr")
    private String ipAddr;

    @TableField("reg_time")
    private Date regTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("last_online")
    private Date lastOnline;

    @TableField("login_ip")
    private String loginIP;

    @TableField("login_platform")
    private Integer loginPlatform;

    @TableField("login_version")
    private String loginVersion;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
